module Base
{
	model fhqH1Body
	{
		mesh = vehicles/vehicle_fhq_h1|fhqH1,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1DoorL
	{
		mesh = vehicles/vehicle_fhq_h1|fhqH1_DoorL,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1DoorR
	{
		mesh = vehicles/vehicle_fhq_h1|fhqH1_DoorR,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1Bullbar
	{
		mesh = vehicles/vehicle_fhq_h1|fhqH1_Bullbar,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1Rooflights
	{
		mesh = vehicles/vehicle_fhq_h1|fhqH1_RoofLights,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1RoofRack
	{
		mesh = vehicles/vehicle_fhq_h1|fhqH1_RoofRack,
		texture = Vehicles/vehicle_fhqH1_shell,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1WheelL
	{
		mesh = vehicles/vehicles_WheelfhqMZOffroad2,
		texture = Vehicles/vehicles_WheelfhqMZ_H1,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqH1WheelR
	{
		mesh = vehicles/vehicles_WheelfhqMZOffroad2,
		texture = Vehicles/vehicles_WheelfhqMZ_H1,
		invertX = TRUE,
		scale = 0.47,
	}
	template vehicle fhqH1Base
	{
		mechanicType = 2,
		offRoadEfficiency = 1.4,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,
		
		engineRPMType = jeep,

		spawnOffsetY = 0.12999995,

		sound
        {
            alarmLoop = VehicleAlarmA VehicleAlarmB VehicleAlarmC VehicleAlarmD VehicleAlarmE,
            engine = VehicleEngineOffRoad,
            engineStart = VehicleEngineOffRoad,
            engineTurnOff = VehicleEngineOffRoad,
            handBrake = VehicleHandBrakeChunky,
            horn = VehicleHornSportsCar,
            ignitionFail = VehicleIgnitionFailOffRoad,
        }

		extents = 1.0110 0.6593 2.1429,
		mass = 1250,
		physicsChassisShape = 1.0110 0.6593 2.1429,
        centerOfMassOffset = 0.0000 0.3407 0.0000,
        shadowExtents = 1.0228 2.1889,
        shadowOffset = 0.0000 0.0000,
		engineForce = 4500,
		engineLoudness = 95,
		engineQuality = 60,
		maxSpeed = 75f,
		gearRatioCount = 3,
		stoppingMovementForce = 1.9f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 30,
		suspensionCompression = 2.81,
		suspensionDamping = 2.82,
		maxSuspensionTravelCm = 20,
		suspensionRestLength = 0.2f,
		wheelFriction = 1.6f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 4,

		wheel FrontLeft
        {
            front = true,
            offset = 0.4121 -0.0257 0.7637,
            radius = 0.20f,
            width = 0.4f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.4121 -0.0273 0.7637,
            radius = 0.20f,
            width = 0.4f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.4121 -0.0273 -0.7582,
            radius = 0.20f,
            width = 0.4f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.4121 -0.0273 -0.7582,
            radius = 0.20f,
            width = 0.4f,
        }

		template = PassengerSeat4,

		passenger FrontLeft
        {
            position inside
            {
                offset = 0.2198 0.2198 0.0879,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.6648 -0.2253 -0.0055,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.2198 0.2198 0.0879,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.6648 -0.2253 -0.0055,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger RearLeft
        {
            position inside
            {
                offset = 0.2198 0.2198 -0.3516,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.6648 -0.2253 -0.4615,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearLeft,
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.2198 0.2198 -0.3516,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.6648 -0.2253 -0.4615,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

		area Engine
        {
            xywh = 0.0000 1.3022 1.0110 0.4615,
        }

        area TruckBed
        {
            xywh = 0.0000 -1.3022 1.0110 0.4615,
        }

        area SeatFrontLeft
        {
            xywh = 0.7527 0.1758 0.4945 0.4945,
        }

        area SeatFrontRight
        {
            xywh = -0.7527 0.1758 0.4945 0.4945,
        }

        area SeatRearLeft
        {
            xywh = 0.7527 -0.2418 0.4945 0.4945,
        }

        area SeatRearRight
        {
            xywh = -0.7527 -0.2418 0.4945 0.4945,
        }

        area GasTank
        {
            xywh = -0.7253 -0.4945 0.4396 0.4396,
        }

        area TireFrontLeft
        {
            xywh = 0.7253 0.8187 0.4396 0.4396,
        }

        area TireFrontRight
        {
            xywh = -0.7253 0.8187 0.4396 0.4396,
        }

        area TireRearLeft
        {
            xywh = 0.7253 -0.7253 0.4396 0.4396,
        }

        area TireRearRight
        {
            xywh = -0.7253 -0.7253 0.4396 0.4396,
        }

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part Seat*
		{
			table install
            {
                skills = Mechanics:2,
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                skills = Mechanics:2,
                recipes = Intermediate Mechanics,
            }
		}

		template = GloveBox,
		template = GasTank,
		
		part GasTank
        {
            table install
            {
                skills = Mechanics:7,
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                skills = Mechanics:7,
                recipes = Intermediate Mechanics,
            }
        }
		
		template = Battery,
		template = Engine,
		template = Muffler,
		
		part Muffler
        {
            table install
            {
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }
		
		template = EngineDoor,

		part EngineDoor
		{
			table install
            {
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
			
			anim Open
			{
				sound = VehicleHoodOpenJeep,
			}

			anim Close
			{
				sound = VehicleHoodCloseJeep,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,
		
		part Windshield*
        {
            table install
            {
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
		template = Window/part/WindowRearRight,

		part Window*
		{
			table install
            {
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		
		part DoorFrontLeft
		{
			model Default
			{
				file = fhqH1DoorL,
			}
		}
		
		part DoorFrontRight
		{
			model Default
			{
				file = fhqH1DoorR,
			}
		}
		
		template = Door/part/DoorRearLeft,
		template = Door/part/DoorRearRight,

		part Door*
		{
			table install
            {
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
			anim Open
			{
				sound = VehicleDoorOpenJeep,
			}

			anim Close
			{
				sound = VehicleDoorCloseJeep,
			}

			anim Lock
			{
				sound = LockVehicleDoorJeep,
			}

			anim Unlock
			{
				sound = UnlockVehicleDoorJeep,
			}

			anim IsLocked
			{
				sound = VehicleDoorIsLockedJeep,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhqH1WheelL,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = fhqH1WheelR,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhqH1WheelL,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = fhqH1WheelR,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = Brake,
		
		part Brake*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
        }
		
		template = Suspension,
		
		part Suspension*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
        }
		
		template = Radio,
		template = Headlight,
		
        attachment trailer
        {
            offset = 0.0000 0.0961 -1.1173,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.0950 1.0184,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
		
	}
	
	template vehicle fhqH1Wagon
	{
		template! = fhqH1Base,
		
		template = TrunkDoor,

		part TrunkDoor
		{
			anim Open
			{
				sound = VehicleTrunkOpenJeep,
			}

			anim Close
			{
				sound = VehicleTrunkCloseJeep,
			}

			anim Lock
			{
				sound = LockVehicleDoorJeep,
			}

			anim Unlock
			{
				sound = UnlockVehicleDoorJeep,
			}

			anim IsLocked
			{
				sound = VehicleDoorIsLockedJeep,
			}

			table uninstall
			{
				requireUninstalled = WindshieldRear,
			}
		}
		
		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
            {
                test = Vehicles.ContainerAccess.TruckBedOpenInside,
            }
		}
		
	}
	
	vehicle fhqH1
    {
        template! = fhqH1Wagon,

        model
        {
            file = fhqH1Body,
            scale = 1.8200,
            offset = 0.0000 0.0000 0.0549,
        }

        skin
        {
            texture = Vehicles/vehicle_fhqH1_shell,
        }

        textureMask = Vehicles/vehicle_fhqH1_mask,
        textureLights = Vehicles/vehicle_fhqH1_lights,
        textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
        textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
        textureDamage1Shell = Vehicles/Veh_Damage1,
        textureDamage2Shell = Vehicles/Veh_Damage2,
        textureRust = Vehicles/Veh_Rust,

        wheel FrontLeft
        {
            front = true,
            offset = 0.4121 -0.0257 0.7637,
            radius = 0.20f,
            width = 0.4f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.4121 -0.0273 0.7637,
            radius = 0.20f,
            width = 0.4f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.4121 -0.0273 -0.7582,
            radius = 0.20f,
            width = 0.4f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.4121 -0.0273 -0.7582,
            radius = 0.20f,
            width = 0.4f,
        }

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.2198 0.2198 0.0879,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.6648 -0.2253 -0.0055,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.2198 0.2198 0.0879,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.6648 -0.2253 -0.0055,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger RearLeft
        {
            position inside
            {
                offset = 0.2198 0.2198 -0.3516,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.6648 -0.2253 -0.4615,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearLeft,
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.2198 0.2198 -0.3516,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.6648 -0.2253 -0.4615,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 1.3022 1.0110 0.4615,
        }

        area TruckBed
        {
            xywh = 0.0000 -1.3022 1.0110 0.4615,
        }

        area SeatFrontLeft
        {
            xywh = 0.7527 0.1758 0.4945 0.4945,
        }

        area SeatFrontRight
        {
            xywh = -0.7527 0.1758 0.4945 0.4945,
        }

        area SeatRearLeft
        {
            xywh = 0.7527 -0.2418 0.4945 0.4945,
        }

        area SeatRearRight
        {
            xywh = -0.7527 -0.2418 0.4945 0.4945,
        }

        area GasTank
        {
            xywh = -0.7253 -0.4945 0.4396 0.4396,
        }

        area TireFrontLeft
        {
            xywh = 0.7253 0.8187 0.4396 0.4396,
        }

        area TireFrontRight
        {
            xywh = -0.7253 0.8187 0.4396 0.4396,
        }

        area TireRearLeft
        {
            xywh = 0.7253 -0.7253 0.4396 0.4396,
        }

        area TireRearRight
        {
            xywh = -0.7253 -0.7253 0.4396 0.4396,
        }

        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.1703 0.0020,
            extents = 0.9890 0.2527 2.1209,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2692 0.7220,
            extents = 0.9890 0.2198 0.6703,
            rotate = 7.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.4745 -0.3132,
            extents = 0.9560 0.3956 1.4615,
            rotate = 0.0000 0.0000 0.0000,
        }

        extents = 1.0110 0.6593 2.1429,
        physicsChassisShape = 1.0110 0.6593 2.1429,
        centerOfMassOffset = 0.0000 0.3407 0.0000,
        shadowExtents = 1.0228 2.1889,
        shadowOffset = 0.0000 0.0000,

        attachment trailer
        {
            offset = 0.0000 0.0961 -1.1173,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.0950 1.0184,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
